package com.huangyong.entity;

import java.sql.Timestamp;

public class Comment {
    private Integer cid;

    private User user;

    private Integer aid;

    private String content;

    private Timestamp time;

    
    public Comment() {
		super();
	}

	public Comment(Integer cid, User user, Integer aid, String content, Timestamp time) {
		super();
		this.cid = cid;
		this.user = user;
		this.aid = aid;
		this.content = content;
		this.time = time;
	}

	public Comment(Integer aid,User user, String content) {
    	super();
    	this.aid = aid;
    	this.user = user;
    	this.content = content;
	}

	public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}